package com.hexb.smh.mapper;

import com.hexb.smh.entity.Product;
import com.hexb.smh.entity.ProductPrice;
import com.hexb.smh.entity.ProductRaw;
import com.hexb.smh.entity.param.product.ProductQueryParam;
import com.hexb.smh.entity.view.ProductClientView;
import com.hexb.smh.entity.view.ProductSumView;
import com.hexb.smh.entity.view.ProductView;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author : hexb
 * BaseMapper内置方法部分仅支持mysql
 */
@Mapper
@Repository
public interface ProductPriceMapper {


    int batchSaveOrUpdate(List<ProductPrice> prices);

    int clear();

    int deleteByPriceId(Integer pid);

    int deleteBatchByPriceId(@Param("ids") Integer[] ids);

}
